<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS与html结合方式</title>


</head>
<body>

<input type="text">

<script>
    alert("Hello javascript");
</script>

<script src="js/a.js"></script>

</body>
</html>